package com.eshop.eshop2021_v1.service;

import com.eshop.eshop2021_v1.common.JsonResult;
import com.eshop.eshop2021_v1.pojo.Cart;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author: 若若叶
 * @date: 2021/10/13 14:08 FileName: CartService Description:
 */
public interface CartService {
  JsonResult addCart(Integer goodId, Integer goodNum, HttpSession session);

  List<Cart> findCartAndGoodsInfo(HttpSession session);

  JsonResult deleteOne(Integer cartId);

  JsonResult deleteAll(HttpSession session);
}
